/**
 * File FileTransfert.java 
 */
package cs.gui;

import javax.swing.JFrame;
import javax.swing.JProgressBar;

/**
 * Small window open during an exchange file to warn the user.<p>
 * Package  cs.gui
 * Project ChatSystemG1 - INSA 4INFOA1 - 2013/2014
 * @author Julie DUMONS & Juste OUEDRAOGO
 */
@SuppressWarnings("serial")

public class FileTransfert extends JFrame {
	public FileTransfert(String name) {
		this.setUndecorated(true);
		JProgressBar progress = new JProgressBar();
		progress.setStringPainted(true);
		progress.setString(name);
		progress.setIndeterminate(true);
		this.getContentPane().add(progress);
		this.pack();
		this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		this.setVisible(true);
		
	}
}
